<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layui</title>
    <link rel="stylesheet" href="./layui/css/layui.css">
    <script src="./layui/layui.js"></script> </head>

<body>
    <div id="layer-photos-demo" class="layer-photos-demo">
      <img layer-src="大图地址" src="缩略图" alt="图片名">
      <img layer-src="大图地址" src="缩略图" alt="图片名">
    </div>
     
    <script>
    //调用示例
    layer.photos({
      photos: "./layer-photo.jpg"
      ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
    }); 
    </script>

</html>